﻿<shared:UserControlBase x:Class="HP.Cachalote.WPF.UserControls.EditNoteUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:HP.Cachalote.WPF.Shared"
             mc:Ignorable="d" 
             x:Name="CurrentUserControl"
             d:DesignHeight="300" d:DesignWidth="440"
             Loaded="CurrentUserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <!-- TodoItem Title -->
            <RowDefinition Height="Auto" />
            <!-- TextBox for Note -->
            <RowDefinition />
            <!-- Okay & Cancel Button -->
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding TodoItemTitle}" Style="{StaticResource TodoItemTitleTextBlock}" />
        <TextBox Grid.Row="1" x:Name="TxtNote" Text="{Binding Note}" Margin="0,8,0,8" Style="{StaticResource TodoItemNoteTextBox}" />
        <Grid Grid.Row="2" Width="180" Margin="0,0,-3,0" HorizontalAlignment="Right">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Button Margin="4" Width="80" Height="35" HorizontalAlignment="Right" Content="Save" Command="{Binding SaveCommand}" />
            <Button Grid.Column="1" Margin="4" Width="80" Height="35" HorizontalAlignment="Right" IsCancel="True" Content="Cancel" Command="{Binding CancelCommand}" />
        </Grid>    
    </Grid>
</shared:UserControlBase>
